package main;

import microprocessador.Processador;
import parser.Parser;
import vista.Janela;

import componentes.Memoria;


public class Main {

	private static Processador processador;
	private static Memoria memoriaPrincipal;
	public static final int modoMicroinstrucao = 1;
	public static final int modoInstrucao = 2;
	public static final int modoPrograma = 3;
	private static int modoExecucao = modoPrograma;	
	
	public static void main(String[] args) {
		Parser.criaInstancia();
		processador = new Processador();
		memoriaPrincipal = new Memoria(1024);
		
		Janela.run();
	}
	
	public static Processador getProcessador(){
		return processador;
	}
	
	public static Memoria getMemoriaPrincipal(){
		return memoriaPrincipal;
	}
	
	public static void setModoExecucao(int modoExecucao) {
		Main.modoExecucao = modoExecucao;
	}	
	
	public static int getModoExecucao() {
		return modoExecucao;
	}	
}
